export function getParams(data){
  let params = "?"
  for(let item in data){
    params = params + item+"="+data[item]+"&"
  }
  return params.substring(0,params.length-1)
}